home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / CIncludes / GXErrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  35.8 KB  |  723 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        GXErrors.h
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __GXERRORS__
  18. #define __GXERRORS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21. #include <ConditionalMacros.h>
  22. #endif
  23. #ifndef __MIXEDMODE__
  24. #include <MixedMode.h>
  25. #endif
  26. #ifndef __GXTYPES__
  27. #include <GXTypes.h>
  28. #endif
  29.  
  30.  
  31.  
  32. #if PRAGMA_ONCE
  33. #pragma once
  34. #endif
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #if PRAGMA_IMPORT
  41. #pragma import on
  42. #endif
  43.  
  44. #if PRAGMA_STRUCT_ALIGN
  45.     #pragma options align=mac68k
  46. #elif PRAGMA_STRUCT_PACKPUSH
  47.     #pragma pack(push, 2)
  48. #elif PRAGMA_STRUCT_PACK
  49.     #pragma pack(2)
  50. #endif
  51.  
  52. #if defined(__MWERKS__) && TARGET_CPU_68K
  53.     #pragma push
  54.     #pragma pointers_in_D0
  55. #endif
  56.  
  57.  
  58. enum {
  59.     gxFirstSystemError            = -27999,                        /* 0xffff92a1 */
  60.     gxFirstFatalError            = -27999,
  61.     gxLastFatalError            = -27951,
  62.     gxFirstNonfatalError        = -27950,
  63.     gxFirstFontScalerError        = -27900,
  64.     gxLastFontScalerError        = -27851,
  65.     gxFirstParameterError        = -27850,
  66.     gxFirstImplementationLimitError = -27800,
  67.     gxFirstSystemDebuggingError    = -27700,
  68.     gxLastSystemError            = -27000,                        /* 0xffff9688 */
  69.     gxFirstLibraryError            = 1048576L,                        /* 0x00100000 */
  70.     gxLastLibraryError            = 2097151L,                        /* 0x001fffff */
  71.     gxFirstAppError                = 2097152L,                        /* 0x00200000 */
  72.     gxLastAppError                = 4194303L,                        /* 0x003fffff */
  73.     gxFirstSystemWarning        = -26999,                        /* 0xffff9689 */
  74.     gxFirstResultOutOfRangeWarning = -26950,
  75.     gxFirstParameterOutOfRangeWarning = -26900,
  76.     gxFirstFontScalerWarning    = -26850,
  77.     gxFirstSystemDebuggingWarning = -26700,
  78.     gxLastSystemWarning            = -26000,                        /* 0xffff9a70 */
  79.     gxFirstLibraryWarning        = 4194304L,                        /* 0x00400000 */
  80.     gxLastLibraryWarning        = 5242879L,                        /* 0x004fffff */
  81.     gxFirstAppWarning            = 5242880L,                        /* 0x00500000 */
  82.     gxLastAppWarning            = 7340031L,                        /* 0x006fffff */
  83.     gxFirstSystemNotice            = -25999,                        /* 0xffff9a71 */
  84.     gxLastSystemNotice            = -25500,                        /* 0xffff9c64 */
  85.     gxFirstLibraryNotice        = 7340032L,                        /* 0x00700000 */
  86.     gxLastLibraryNotice            = 7602175L,                        /* 0x0073ffff */
  87.     gxFirstAppNotice            = 7602176L,                        /* 0x00740000 */
  88.     gxLastAppNotice                = 8388607L                        /* 0x007fffff */
  89. };
  90.  
  91.  
  92. enum {
  93.                                                                 /* truly fatal errors */
  94.     out_of_memory                = gxFirstFatalError,
  95.     internal_fatal_error        = gxFirstFatalError + 1,
  96.     no_outline_font_found        = gxFirstFatalError + 2,
  97.     not_enough_memory_for_graphics_client_heap = gxFirstFatalError + 3,
  98.     could_not_create_backing_store = gxFirstFatalError + 4,        /* internal errors */
  99.     internal_error                = gxFirstNonfatalError,
  100.     internal_font_error            = gxFirstNonfatalError + 1,
  101.     internal_layout_error        = gxFirstNonfatalError + 2,        /* recoverable errors */
  102.     could_not_dispose_backing_store = internal_layout_error + 2,
  103.     unflattening_interrupted_by_client = internal_layout_error + 3, /* font manager errors */
  104.     font_cannot_be_changed        = internal_layout_error + 4,
  105.     illegal_font_parameter        = internal_layout_error + 5,    /* gxFont scaler errors */
  106.     null_font_scaler_context    = gxFirstFontScalerError,
  107.     null_font_scaler_input        = gxFirstFontScalerError + 1,
  108.     invalid_font_scaler_context    = gxFirstFontScalerError + 2,
  109.     invalid_font_scaler_input    = gxFirstFontScalerError + 3,
  110.     invalid_font_scaler_font_data = gxFirstFontScalerError + 4,
  111.     font_scaler_newblock_failed    = gxFirstFontScalerError + 5,
  112.     font_scaler_getfonttable_failed = gxFirstFontScalerError + 6,
  113.     font_scaler_bitmap_allocation_failed = gxFirstFontScalerError + 7,
  114.     font_scaler_outline_allocation_failed = gxFirstFontScalerError + 8,
  115.     required_font_scaler_table_missing = gxFirstFontScalerError + 9,
  116.     unsupported_font_scaler_outline_format = gxFirstFontScalerError + 10,
  117.     unsupported_font_scaler_stream_format = gxFirstFontScalerError + 11,
  118.     unsupported_font_scaler_font_format = gxFirstFontScalerError + 12,
  119.     font_scaler_hinting_error    = gxFirstFontScalerError + 13,
  120.     font_scaler_rasterizer_error = gxFirstFontScalerError + 14,
  121.     font_scaler_internal_error    = gxFirstFontScalerError + 15,
  122.     font_scaler_invalid_matrix    = gxFirstFontScalerError + 16,
  123.     font_scaler_fixed_overflow    = gxFirstFontScalerError + 17,
  124.     font_scaler_api_version_mismatch = gxFirstFontScalerError + 18,
  125.     font_scaler_streaming_aborted = gxFirstFontScalerError + 19,
  126.     unknown_font_scaler_error    = gxFirstFontScalerError + 20,    /* bad parameters */
  127.     parameter_is_nil            = gxFirstParameterError,
  128.     shape_is_nil                = gxFirstParameterError + 1,
  129.     style_is_nil                = gxFirstParameterError + 2,
  130.     transform_is_nil            = gxFirstParameterError + 3,
  131.     ink_is_nil                    = gxFirstParameterError + 4,
  132.     transferMode_is_nil            = gxFirstParameterError + 5,
  133.     color_is_nil                = gxFirstParameterError + 6,
  134.     colorProfile_is_nil            = gxFirstParameterError + 7,
  135.     colorSet_is_nil                = gxFirstParameterError + 8,
  136.     spoolProcedure_is_nil        = gxFirstParameterError + 9,
  137.     tag_is_nil                    = gxFirstParameterError + 10,
  138.     type_is_nil                    = gxFirstParameterError + 11,
  139.     mapping_is_nil                = gxFirstParameterError + 12,
  140.     invalid_viewDevice_reference = gxFirstParameterError + 13,
  141.     invalid_viewGroup_reference    = gxFirstParameterError + 14,
  142.     invalid_viewPort_reference    = gxFirstParameterError + 15,    /* implementation limits, these should be right before the debugging errors */
  143.     number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError,
  144.     number_of_points_exceeds_implementation_limit = gxFirstImplementationLimitError + 1,
  145.     size_of_polygon_exceeds_implementation_limit = gxFirstImplementationLimitError + 2,
  146.     size_of_path_exceeds_implementation_limit = gxFirstImplementationLimitError + 3,
  147.     size_of_text_exceeds_implementation_limit = gxFirstImplementationLimitError + 4,
  148.     size_of_bitmap_exceeds_implementation_limit = gxFirstImplementationLimitError + 5,
  149.     number_of_colors_exceeds_implementation_limit = gxFirstImplementationLimitError + 6,
  150.     procedure_not_reentrant        = gxFirstImplementationLimitError + 7
  151. };
  152.  
  153.  
  154.  
  155.  
  156. enum {
  157.                                                                 /* internal debugging errors */
  158.     functionality_unimplemented    = gxFirstSystemDebuggingError,
  159.     clip_to_frame_shape_unimplemented = gxFirstSystemDebuggingError + 1, /* font parameter debugging errors */
  160.     illegal_font_storage_type    = gxFirstSystemDebuggingError + 2,
  161.     illegal_font_storage_reference = gxFirstSystemDebuggingError + 3,
  162.     illegal_font_attributes        = gxFirstSystemDebuggingError + 4, /* parameter debugging errors */
  163.     parameter_out_of_range        = gxFirstSystemDebuggingError + 5,
  164.     inconsistent_parameters        = gxFirstSystemDebuggingError + 6,
  165.     index_is_less_than_zero        = gxFirstSystemDebuggingError + 7,
  166.     index_is_less_than_one        = gxFirstSystemDebuggingError + 8,
  167.     count_is_less_than_zero        = gxFirstSystemDebuggingError + 9,
  168.     count_is_less_than_one        = gxFirstSystemDebuggingError + 10,
  169.     contour_is_less_than_zero    = gxFirstSystemDebuggingError + 11,
  170.     length_is_less_than_zero    = gxFirstSystemDebuggingError + 12,
  171.     invalid_client_reference    = gxFirstSystemDebuggingError + 13,
  172.     invalid_graphics_heap_start_pointer = gxFirstSystemDebuggingError + 14,
  173.     invalid_nongraphic_globals_pointer = gxFirstSystemDebuggingError + 15,
  174.     colorSpace_out_of_range        = gxFirstSystemDebuggingError + 16,
  175.     pattern_lattice_out_of_range = gxFirstSystemDebuggingError + 17,
  176.     frequency_parameter_out_of_range = gxFirstSystemDebuggingError + 18,
  177.     tinting_parameter_out_of_range = gxFirstSystemDebuggingError + 19,
  178.     method_parameter_out_of_range = gxFirstSystemDebuggingError + 20,
  179.     space_may_not_be_indexed    = gxFirstSystemDebuggingError + 21,
  180.     glyph_index_too_small        = gxFirstSystemDebuggingError + 22,
  181.     no_glyphs_added_to_font        = gxFirstSystemDebuggingError + 23,
  182.     glyph_not_added_to_font        = gxFirstSystemDebuggingError + 24,
  183.     point_does_not_intersect_bitmap = gxFirstSystemDebuggingError + 25,
  184.     required_font_table_not_present = gxFirstSystemDebuggingError + 26,
  185.     unknown_font_table_format    = gxFirstSystemDebuggingError + 27, /* the styles encoding is not present in the font */
  186.     shapeFill_not_allowed        = gxFirstSystemDebuggingError + 28,
  187.     inverseFill_face_must_set_clipLayer_flag = gxFirstSystemDebuggingError + 29,
  188.     invalid_transferMode_colorSpace = gxFirstSystemDebuggingError + 30,
  189.     colorProfile_must_be_nil    = gxFirstSystemDebuggingError + 31,
  190.     bitmap_pixel_size_must_be_1    = gxFirstSystemDebuggingError + 32,
  191.     empty_shape_not_allowed        = gxFirstSystemDebuggingError + 33,
  192.     ignorePlatformShape_not_allowed = gxFirstSystemDebuggingError + 34,
  193.     nil_style_in_glyph_not_allowed = gxFirstSystemDebuggingError + 35,
  194.     complex_glyph_style_not_allowed = gxFirstSystemDebuggingError + 36,
  195.     invalid_mapping                = gxFirstSystemDebuggingError + 37,
  196.     cannot_set_item_shapes_to_nil = gxFirstSystemDebuggingError + 38,
  197.     cannot_use_original_item_shapes_when_growing_picture = gxFirstSystemDebuggingError + 39,
  198.     cannot_add_unspecified_new_glyphs = gxFirstSystemDebuggingError + 40,
  199.     cannot_dispose_locked_tag    = gxFirstSystemDebuggingError + 41,
  200.     cannot_dispose_locked_shape    = gxFirstSystemDebuggingError + 42, /* restricted access */
  201.     shape_access_not_allowed    = gxFirstSystemDebuggingError + 43,
  202.     colorSet_access_restricted    = gxFirstSystemDebuggingError + 44,
  203.     colorProfile_access_restricted = gxFirstSystemDebuggingError + 45,
  204.     tag_access_restricted        = gxFirstSystemDebuggingError + 46,
  205.     viewDevice_access_restricted = gxFirstSystemDebuggingError + 47,
  206.     graphic_type_does_not_have_a_structure = gxFirstSystemDebuggingError + 48,
  207.     style_run_array_does_not_match_number_of_characters = gxFirstSystemDebuggingError + 49,
  208.     rectangles_cannot_be_inserted_into = gxFirstSystemDebuggingError + 50,
  209.     unknown_graphics_heap        = gxFirstSystemDebuggingError + 51,
  210.     graphics_routine_selector_is_obsolete = gxFirstSystemDebuggingError + 52,
  211.     cannot_set_graphics_client_memory_without_setting_size = gxFirstSystemDebuggingError + 53,
  212.     graphics_client_memory_too_small = gxFirstSystemDebuggingError + 54,
  213.     graphics_client_memory_is_already_allocated = gxFirstSystemDebuggingError + 55,
  214.     viewPort_is_a_window        = gxFirstSystemDebuggingError + 56, /* wrong type/bad reference */
  215.     illegal_type_for_shape        = gxFirstSystemDebuggingError + 57,
  216.     shape_does_not_contain_a_bitmap = gxFirstSystemDebuggingError + 58,
  217.     shape_does_not_contain_text    = gxFirstSystemDebuggingError + 59,
  218.     picture_expected            = gxFirstSystemDebuggingError + 60,
  219.     bitmap_is_not_resizable        = gxFirstSystemDebuggingError + 61,
  220.     shape_may_not_be_a_bitmap    = gxFirstSystemDebuggingError + 62,
  221.     shape_may_not_be_a_picture    = gxFirstSystemDebuggingError + 63,
  222.     graphic_type_does_not_contain_points = gxFirstSystemDebuggingError + 64,
  223.     graphic_type_does_not_have_multiple_contours = gxFirstSystemDebuggingError + 65,
  224.     graphic_type_cannot_be_mapped = gxFirstSystemDebuggingError + 66,
  225.     graphic_type_cannot_be_moved = gxFirstSystemDebuggingError + 67,
  226.     graphic_type_cannot_be_scaled = gxFirstSystemDebuggingError + 68,
  227.     graphic_type_cannot_be_rotated = gxFirstSystemDebuggingError + 69,
  228.     graphic_type_cannot_be_skewed = gxFirstSystemDebuggingError + 70,
  229.     graphic_type_cannot_be_reset = gxFirstSystemDebuggingError + 71,
  230.     graphic_type_cannot_be_dashed = gxFirstSystemDebuggingError + 72,
  231.     graphic_type_cannot_be_reduced = gxFirstSystemDebuggingError + 73,
  232.     graphic_type_cannot_be_inset = gxFirstSystemDebuggingError + 74,
  233.     shape_cannot_be_inverted    = gxFirstSystemDebuggingError + 75,
  234.     shape_does_not_have_area    = gxFirstSystemDebuggingError + 76,
  235.     shape_does_not_have_length    = gxFirstSystemDebuggingError + 77,
  236.     first_glyph_advance_must_be_absolute = gxFirstSystemDebuggingError + 78,
  237.     picture_cannot_contain_itself = gxFirstSystemDebuggingError + 79,
  238.     viewPort_cannot_contain_itself = gxFirstSystemDebuggingError + 80,
  239.     cannot_set_unique_items_attribute_when_picture_contains_items = gxFirstSystemDebuggingError + 81,
  240.     layer_style_cannot_contain_a_face = gxFirstSystemDebuggingError + 82,
  241.     layer_glyph_shape_cannot_contain_nil_styles = gxFirstSystemDebuggingError + 83, /* validation errors */
  242.     object_wrong_type            = gxFirstSystemDebuggingError + 84,
  243.     shape_wrong_type            = gxFirstSystemDebuggingError + 85,
  244.     style_wrong_type            = gxFirstSystemDebuggingError + 86,
  245.     ink_wrong_type                = gxFirstSystemDebuggingError + 87,
  246.     transform_wrong_type        = gxFirstSystemDebuggingError + 88,
  247.     device_wrong_type            = gxFirstSystemDebuggingError + 89,
  248.     port_wrong_type                = gxFirstSystemDebuggingError + 90, /* validation cache errors */
  249.     shape_cache_wrong_type        = gxFirstSystemDebuggingError + 91,
  250.     style_cache_wrong_type        = gxFirstSystemDebuggingError + 92,
  251.     ink_cache_wrong_type        = gxFirstSystemDebuggingError + 93,
  252.     transform_cache_wrong_type    = gxFirstSystemDebuggingError + 94,
  253.     port_cache_wrong_type        = gxFirstSystemDebuggingError + 95,
  254.     shape_cache_parent_mismatch    = gxFirstSystemDebuggingError + 96,
  255.     style_cache_parent_mismatch    = gxFirstSystemDebuggingError + 97,
  256.     ink_cache_parent_mismatch    = gxFirstSystemDebuggingError + 98,
  257.     transform_cache_parent_mismatch = gxFirstSystemDebuggingError + 99,
  258.     port_cache_parent_mismatch    = gxFirstSystemDebuggingError + 100,
  259.     invalid_shape_cache_port    = gxFirstSystemDebuggingError + 101,
  260.     invalid_shape_cache_device    = gxFirstSystemDebuggingError + 102,
  261.     invalid_ink_cache_port        = gxFirstSystemDebuggingError + 103,
  262.     invalid_ink_cache_device    = gxFirstSystemDebuggingError + 104,
  263.     invalid_style_cache_port    = gxFirstSystemDebuggingError + 105,
  264.     invalid_style_cache_device    = gxFirstSystemDebuggingError + 106,
  265.     invalid_transform_cache_port = gxFirstSystemDebuggingError + 107,
  266.     invalid_transform_cache_device = gxFirstSystemDebuggingError + 108,
  267.     recursive_caches            = gxFirstSystemDebuggingError + 109, /* validation shape cache errors */
  268.     invalid_fillShape_ownerCount = gxFirstSystemDebuggingError + 110,
  269.     recursive_fillShapes        = gxFirstSystemDebuggingError + 111, /* validation memory block errors */
  270.     indirect_memory_block_too_small = gxFirstSystemDebuggingError + 112,
  271.     indirect_memory_block_too_large = gxFirstSystemDebuggingError + 113,
  272.     unexpected_nil_pointer        = gxFirstSystemDebuggingError + 114,
  273.     bad_address                    = gxFirstSystemDebuggingError + 115, /* validation object errors */
  274.     no_owners                    = gxFirstSystemDebuggingError + 116,
  275.     invalid_pointer                = gxFirstSystemDebuggingError + 117,
  276.     invalid_seed                = gxFirstSystemDebuggingError + 118,
  277.     invalid_frame_seed            = gxFirstSystemDebuggingError + 119,
  278.     invalid_text_seed            = gxFirstSystemDebuggingError + 120,
  279.     invalid_draw_seed            = gxFirstSystemDebuggingError + 121,
  280.     bad_private_flags            = gxFirstSystemDebuggingError + 122, /* validation path and polygon errors */
  281.     invalid_vector_count        = gxFirstSystemDebuggingError + 123,
  282.     invalid_contour_count        = gxFirstSystemDebuggingError + 124, /* validation bitmap errors */
  283.     bitmap_ptr_too_small        = gxFirstSystemDebuggingError + 125,
  284.     bitmap_ptr_not_aligned        = gxFirstSystemDebuggingError + 126,
  285.     bitmap_rowBytes_negative    = gxFirstSystemDebuggingError + 127,
  286.     bitmap_width_negative        = gxFirstSystemDebuggingError + 128,
  287.     bitmap_height_negative        = gxFirstSystemDebuggingError + 129,
  288.     invalid_pixelSize            = gxFirstSystemDebuggingError + 130,
  289.     bitmap_rowBytes_too_small    = gxFirstSystemDebuggingError + 131,
  290.     bitmap_rowBytes_not_aligned    = gxFirstSystemDebuggingError + 132,
  291.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = gxFirstSystemDebuggingError + 133, /* validation bitmap image errors */
  292.     invalid_bitImage_fileOffset    = gxFirstSystemDebuggingError + 134,
  293.     invalid_bitImage_owners        = gxFirstSystemDebuggingError + 135,
  294.     invalid_bitImage_rowBytes    = gxFirstSystemDebuggingError + 136,
  295.     invalid_bitImage_internal_flag = gxFirstSystemDebuggingError + 137, /* validation text errors */
  296.     text_bounds_cache_wrong_size = gxFirstSystemDebuggingError + 138,
  297.     text_metrics_cache_wrong_size = gxFirstSystemDebuggingError + 139,
  298.     text_index_cache_wrong_size    = gxFirstSystemDebuggingError + 140, /* validation glyph errors */
  299.     glyph_run_count_negative    = gxFirstSystemDebuggingError + 141,
  300.     glyph_run_count_zero        = gxFirstSystemDebuggingError + 142,
  301.     glyph_run_counts_do_not_sum_to_character_count = gxFirstSystemDebuggingError + 143,
  302.     glyph_first_advance_bit_set_not_allowed = gxFirstSystemDebuggingError + 144,
  303.     glyph_tangent_vectors_both_zero = gxFirstSystemDebuggingError + 145, /* validation layout errors */
  304.     layout_run_length_negative    = gxFirstSystemDebuggingError + 146,
  305.     layout_run_length_zero        = gxFirstSystemDebuggingError + 147,
  306.     layout_run_level_negative    = gxFirstSystemDebuggingError + 148,
  307.     layout_run_lengths_do_not_sum_to_text_length = gxFirstSystemDebuggingError + 149, /* validation picture errors */
  308.     bad_shape_in_picture        = gxFirstSystemDebuggingError + 150,
  309.     bad_style_in_picture        = gxFirstSystemDebuggingError + 151,
  310.     bad_ink_in_picture            = gxFirstSystemDebuggingError + 152,
  311.     bad_transform_in_picture    = gxFirstSystemDebuggingError + 153,
  312.     bad_shape_cache_in_picture    = gxFirstSystemDebuggingError + 154,
  313.     bad_seed_in_picture            = gxFirstSystemDebuggingError + 155,
  314.     invalid_picture_count        = gxFirstSystemDebuggingError + 156, /* validation text face errors */
  315.     bad_textLayer_count            = gxFirstSystemDebuggingError + 157,
  316.     bad_fillType_in_textFace    = gxFirstSystemDebuggingError + 158,
  317.     bad_style_in_textFace        = gxFirstSystemDebuggingError + 159,
  318.     bad_transform_in_textFace    = gxFirstSystemDebuggingError + 160, /* validation transform errors */
  319.     invalid_matrix_flag            = gxFirstSystemDebuggingError + 161,
  320.     transform_clip_missing        = gxFirstSystemDebuggingError + 162, /* validation font cache errors */
  321.     metrics_wrong_type            = gxFirstSystemDebuggingError + 163,
  322.     metrics_point_size_probably_bad = gxFirstSystemDebuggingError + 164,
  323.     scalar_block_wrong_type        = gxFirstSystemDebuggingError + 165,
  324.     scalar_block_parent_mismatch = gxFirstSystemDebuggingError + 166,
  325.     scalar_block_too_small        = gxFirstSystemDebuggingError + 167,
  326.     scalar_block_too_large        = gxFirstSystemDebuggingError + 168,
  327.     invalid_metrics_range        = gxFirstSystemDebuggingError + 169,
  328.     invalid_metrics_flags        = gxFirstSystemDebuggingError + 170,
  329.     metrics_maxWidth_probably_bad = gxFirstSystemDebuggingError + 171,
  330.     font_wrong_type                = gxFirstSystemDebuggingError + 172,
  331.     font_wrong_size                = gxFirstSystemDebuggingError + 173,
  332.     invalid_font_platform        = gxFirstSystemDebuggingError + 174,
  333.     invalid_lookup_range        = gxFirstSystemDebuggingError + 175,
  334.     invalid_lookup_platform        = gxFirstSystemDebuggingError + 176,
  335.     font_not_in_font_list        = gxFirstSystemDebuggingError + 177,
  336.     metrics_not_in_metrics_list    = gxFirstSystemDebuggingError + 178, /* validation view device errors */
  337.     bad_device_private_flags    = gxFirstSystemDebuggingError + 179,
  338.     bad_device_attributes        = gxFirstSystemDebuggingError + 180,
  339.     invalid_device_number        = gxFirstSystemDebuggingError + 181,
  340.     invalid_device_viewGroup    = gxFirstSystemDebuggingError + 182,
  341.     invalid_device_bounds        = gxFirstSystemDebuggingError + 183,
  342.     invalid_bitmap_in_device    = gxFirstSystemDebuggingError + 184, /* validation color set errors */
  343.     colorSet_wrong_type            = gxFirstSystemDebuggingError + 185,
  344.     invalid_colorSet_viewDevice_owners = gxFirstSystemDebuggingError + 186,
  345.     invalid_colorSet_colorSpace    = gxFirstSystemDebuggingError + 187,
  346.     invalid_colorSet_count        = gxFirstSystemDebuggingError + 188, /* validation color profile errors */
  347.     colorProfile_wrong_type        = gxFirstSystemDebuggingError + 189,
  348.     invalid_colorProfile_flags    = gxFirstSystemDebuggingError + 190,
  349.     invalid_colorProfile_response_count = gxFirstSystemDebuggingError + 191, /* validation internal backing store errors */
  350.     backing_free_parent_mismatch = gxFirstSystemDebuggingError + 192,
  351.     backing_store_parent_mismatch = gxFirstSystemDebuggingError + 193
  352. };
  353.  
  354.  
  355.  
  356. enum {
  357.                                                                 /* warnings about warnings */
  358.     warning_stack_underflow        = gxFirstSystemWarning,
  359.     warning_stack_overflow        = gxFirstSystemWarning + 1,
  360.     notice_stack_underflow        = gxFirstSystemWarning + 2,
  361.     notice_stack_overflow        = gxFirstSystemWarning + 3,
  362.     about_to_grow_heap            = gxFirstSystemWarning + 4,
  363.     about_to_unload_objects        = gxFirstSystemWarning + 5,        /* result went out of range */
  364.     map_shape_out_of_range        = gxFirstResultOutOfRangeWarning,
  365.     move_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 1,
  366.     scale_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 2,
  367.     rotate_shape_out_of_range    = gxFirstResultOutOfRangeWarning + 3,
  368.     skew_shape_out_of_range        = gxFirstResultOutOfRangeWarning + 4,
  369.     map_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 5,
  370.     move_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 6,
  371.     scale_transform_out_of_range = gxFirstResultOutOfRangeWarning + 7,
  372.     rotate_transform_out_of_range = gxFirstResultOutOfRangeWarning + 8,
  373.     skew_transform_out_of_range    = gxFirstResultOutOfRangeWarning + 9,
  374.     map_points_out_of_range        = gxFirstResultOutOfRangeWarning + 10, /* gave a parameter out of range */
  375.     contour_out_of_range        = gxFirstParameterOutOfRangeWarning,
  376.     index_out_of_range_in_contour = gxFirstParameterOutOfRangeWarning + 1,
  377.     picture_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 2,
  378.     color_index_requested_not_found = gxFirstParameterOutOfRangeWarning + 3,
  379.     colorSet_index_out_of_range    = gxFirstParameterOutOfRangeWarning + 4,
  380.     index_out_of_range            = gxFirstParameterOutOfRangeWarning + 5,
  381.     count_out_of_range            = gxFirstParameterOutOfRangeWarning + 6,
  382.     length_out_of_range            = gxFirstParameterOutOfRangeWarning + 7,
  383.     font_table_index_out_of_range = gxFirstParameterOutOfRangeWarning + 8,
  384.     font_glyph_index_out_of_range = gxFirstParameterOutOfRangeWarning + 9,
  385.     point_out_of_range            = gxFirstParameterOutOfRangeWarning + 10,
  386.     profile_response_out_of_range = gxFirstParameterOutOfRangeWarning + 11, /* gxFont scaler warnings */
  387.     font_scaler_no_output        = gxFirstFontScalerWarning,
  388.     font_scaler_fake_metrics    = gxFirstFontScalerWarning + 1,
  389.     font_scaler_fake_linespacing = gxFirstFontScalerWarning + 2,
  390.     font_scaler_glyph_substitution = gxFirstFontScalerWarning + 3,
  391.     font_scaler_no_kerning_applied = gxFirstFontScalerWarning + 4, /* might not be what you expected */
  392.     character_substitution_took_place = gxFirstFontScalerWarning + 5,
  393.     unable_to_get_bounds_on_multiple_devices = gxFirstFontScalerWarning + 6,
  394.     font_language_not_found        = gxFirstFontScalerWarning + 7,
  395.     font_not_found_during_unflattening = gxFirstFontScalerWarning + 8, /*storage */
  396.     unrecognized_stream_version    = gxFirstFontScalerWarning + 9,
  397.     bad_data_in_stream            = gxFirstFontScalerWarning + 10
  398. };
  399.  
  400.  
  401.  
  402. enum {
  403.                                                                 /* nonsense data */
  404.     new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning,
  405.     new_tag_contains_invalid_data = gxFirstSystemDebuggingWarning + 1,
  406.     extra_data_passed_was_ignored = gxFirstSystemDebuggingWarning + 2,
  407.     font_table_not_found        = gxFirstSystemDebuggingWarning + 3,
  408.     font_name_not_found            = gxFirstSystemDebuggingWarning + 4, /* doesn't make sense to do */
  409.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 5,
  410.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = gxFirstSystemDebuggingWarning + 6,
  411.     cannot_dispose_default_shape = gxFirstSystemDebuggingWarning + 7,
  412.     cannot_dispose_default_style = gxFirstSystemDebuggingWarning + 8,
  413.     cannot_dispose_default_ink    = gxFirstSystemDebuggingWarning + 9,
  414.     cannot_dispose_default_transform = gxFirstSystemDebuggingWarning + 10,
  415.     cannot_dispose_default_colorProfile = gxFirstSystemDebuggingWarning + 11,
  416.     cannot_dispose_default_colorSet = gxFirstSystemDebuggingWarning + 12,
  417.     shape_direct_attribute_not_set = gxFirstSystemDebuggingWarning + 13, /* couldn't find what you were looking for */
  418.     point_does_not_intersect_port = gxFirstSystemDebuggingWarning + 14,
  419.     cannot_dispose_non_font        = gxFirstSystemDebuggingWarning + 15,
  420.     face_override_style_font_must_match_style = gxFirstSystemDebuggingWarning + 16,
  421.     union_of_area_and_length_returns_area_only = gxFirstSystemDebuggingWarning + 17,
  422.     insufficient_coordinate_space_for_new_device = gxFirstSystemDebuggingWarning + 18, /* other */
  423.     shape_passed_has_no_bounds    = gxFirstSystemDebuggingWarning + 19,
  424.     tags_of_type_flst_removed    = gxFirstSystemDebuggingWarning + 20,
  425.     translator_not_installed_on_this_grafport = gxFirstSystemDebuggingWarning + 21
  426. };
  427.  
  428.  
  429. enum {
  430.     parameters_have_no_effect    = gxFirstSystemNotice,
  431.     attributes_already_set        = gxFirstSystemNotice + 1,
  432.     caps_already_set            = gxFirstSystemNotice + 2,
  433.     clip_already_set            = gxFirstSystemNotice + 3,
  434.     color_already_set            = gxFirstSystemNotice + 4,
  435.     curve_error_already_set        = gxFirstSystemNotice + 5,
  436.     dash_already_set            = gxFirstSystemNotice + 6,
  437.     default_colorProfile_already_set = gxFirstSystemNotice + 7,
  438.     default_ink_already_set        = gxFirstSystemNotice + 8,
  439.     default_transform_already_set = gxFirstSystemNotice + 9,
  440.     default_shape_already_set    = gxFirstSystemNotice + 10,
  441.     default_style_already_set    = gxFirstSystemNotice + 11,
  442.     dither_already_set            = gxFirstSystemNotice + 12,
  443.     encoding_already_set        = gxFirstSystemNotice + 13,
  444.     face_already_set            = gxFirstSystemNotice + 14,
  445.     fill_already_set            = gxFirstSystemNotice + 15,
  446.     font_already_set            = gxFirstSystemNotice + 16,
  447.     font_variations_already_set    = gxFirstSystemNotice + 17,
  448.     glyph_positions_are_already_set = gxFirstSystemNotice + 18,
  449.     glyph_tangents_are_already_set = gxFirstSystemNotice + 19,
  450.     halftone_already_set        = gxFirstSystemNotice + 20,
  451.     hit_test_already_set        = gxFirstSystemNotice + 21,
  452.     ink_already_set                = gxFirstSystemNotice + 22,
  453.     join_already_set            = gxFirstSystemNotice + 23,
  454.     justification_already_set    = gxFirstSystemNotice + 24,
  455.     mapping_already_set            = gxFirstSystemNotice + 25,
  456.     pattern_already_set            = gxFirstSystemNotice + 26,
  457.     pen_already_set                = gxFirstSystemNotice + 27,
  458.     style_already_set            = gxFirstSystemNotice + 28,
  459.     tag_already_set                = gxFirstSystemNotice + 29,
  460.     text_attributes_already_set    = gxFirstSystemNotice + 30,
  461.     text_size_already_set        = gxFirstSystemNotice + 31,
  462.     transfer_already_set        = gxFirstSystemNotice + 32,
  463.     translator_already_installed_on_this_grafport = gxFirstSystemNotice + 33,
  464.     transform_already_set        = gxFirstSystemNotice + 34,
  465.     type_already_set            = gxFirstSystemNotice + 35,
  466.     validation_level_already_set = gxFirstSystemNotice + 36,
  467.     viewPorts_already_set        = gxFirstSystemNotice + 37,
  468.     viewPort_already_in_viewGroup = gxFirstSystemNotice + 38,
  469.     viewDevice_already_in_viewGroup = gxFirstSystemNotice + 39,
  470.     geometry_unaffected            = gxFirstSystemNotice + 40,
  471.     mapping_unaffected            = gxFirstSystemNotice + 41,
  472.     tags_in_shape_ignored        = gxFirstSystemNotice + 42,
  473.     shape_already_in_primitive_form = gxFirstSystemNotice + 43,
  474.     shape_already_in_simple_form = gxFirstSystemNotice + 44,
  475.     shape_already_broken        = gxFirstSystemNotice + 45,
  476.     shape_already_joined        = gxFirstSystemNotice + 46,
  477.     cache_already_cleared        = gxFirstSystemNotice + 47,
  478.     shape_not_disposed            = gxFirstSystemNotice + 48,
  479.     style_not_disposed            = gxFirstSystemNotice + 49,
  480.     ink_not_disposed            = gxFirstSystemNotice + 50,
  481.     transform_not_disposed        = gxFirstSystemNotice + 51,
  482.     colorSet_not_disposed        = gxFirstSystemNotice + 52,
  483.     colorProfile_not_disposed    = gxFirstSystemNotice + 53,
  484.     font_not_disposed            = gxFirstSystemNotice + 54,
  485.     glyph_tangents_have_no_effect = gxFirstSystemNotice + 55,
  486.     glyph_positions_determined_by_advance = gxFirstSystemNotice + 56,
  487.     transform_viewPorts_already_set = gxFirstSystemNotice + 57,
  488.     directShape_attribute_set_as_side_effect = gxFirstSystemNotice + 58,
  489.     lockShape_called_as_side_effect = gxFirstSystemNotice + 59,
  490.     lockTag_called_as_side_effect = gxFirstSystemNotice + 60,
  491.     shapes_unlocked_as_side_effect = gxFirstSystemNotice + 61,
  492.     shape_not_locked            = gxFirstSystemNotice + 62,
  493.     tag_not_locked                = gxFirstSystemNotice + 63,
  494.     profile_not_locked            = tag_not_locked,
  495.     lockProfile_called_as_side_effect = lockTag_called_as_side_effect,
  496.     disposed_dead_caches        = gxFirstSystemNotice + 64,
  497.     disposed_live_caches        = gxFirstSystemNotice + 65,
  498.     low_on_memory                = gxFirstSystemNotice + 66,
  499.     very_low_on_memory            = gxFirstSystemNotice + 67,
  500.     transform_references_disposed_viewPort = gxFirstSystemNotice + 68
  501. };
  502.  
  503.  
  504. typedef long                             gxGraphicsError;
  505. typedef long                             gxGraphicsWarning;
  506. typedef long                             gxGraphicsNotice;
  507. typedef CALLBACK_API_C( void , gxUserErrorProcPtr )(gxGraphicsError status, long refcon);
  508. typedef CALLBACK_API_C( void , gxUserWarningProcPtr )(gxGraphicsWarning status, long refcon);
  509. typedef CALLBACK_API_C( void , gxUserNoticeProcPtr )(gxGraphicsNotice status, long refcon);
  510. typedef STACK_UPP_TYPE(gxUserErrorProcPtr)                         gxUserErrorUPP;
  511. typedef STACK_UPP_TYPE(gxUserWarningProcPtr)                     gxUserWarningUPP;
  512. typedef STACK_UPP_TYPE(gxUserNoticeProcPtr)                     gxUserNoticeUPP;
  513. enum { uppgxUserErrorProcInfo = 0x000003C1 };                     /* no_return_value Func(4_bytes, 4_bytes) */
  514. enum { uppgxUserWarningProcInfo = 0x000003C1 };                 /* no_return_value Func(4_bytes, 4_bytes) */
  515. enum { uppgxUserNoticeProcInfo = 0x000003C1 };                     /* no_return_value Func(4_bytes, 4_bytes) */
  516. #define NewgxUserErrorProc(userRoutine)                         (gxUserErrorUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserErrorProcInfo, GetCurrentArchitecture())
  517. #define NewgxUserWarningProc(userRoutine)                         (gxUserWarningUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserWarningProcInfo, GetCurrentArchitecture())
  518. #define NewgxUserNoticeProc(userRoutine)                         (gxUserNoticeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppgxUserNoticeProcInfo, GetCurrentArchitecture())
  519. #define CallgxUserErrorProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserErrorProcInfo, (status), (refcon))
  520. #define CallgxUserWarningProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserWarningProcInfo, (status), (refcon))
  521. #define CallgxUserNoticeProc(userRoutine, status, refcon)         CALL_TWO_PARAMETER_UPP((userRoutine), uppgxUserNoticeProcInfo, (status), (refcon))
  522. typedef gxUserErrorProcPtr                 gxUserErrorFunction;
  523. typedef gxUserWarningProcPtr             gxUserWarningFunction;
  524. typedef gxUserNoticeProcPtr             gxUserNoticeFunction;
  525.  
  526.  
  527. enum {
  528.     common_colors_not_initialized = gxFirstLibraryError,
  529.     no_open_picture                = gxFirstLibraryError + 1,
  530.     picture_already_open        = gxFirstLibraryError + 2,
  531.     no_open_poly                = gxFirstLibraryError + 3,
  532.     poly_already_open            = gxFirstLibraryError + 4,
  533.     no_open_region                = gxFirstLibraryError + 5,
  534.     region_already_open            = gxFirstLibraryError + 6,
  535.     no_active_picture            = gxFirstLibraryError + 7
  536. };
  537.  
  538.  
  539. enum {
  540.     no_picture_drawn            = gxFirstLibraryWarning,
  541.     polygons_have_different_size_contours = gxFirstLibraryWarning + 1,
  542.     graphic_type_cannot_be_specifed_by_four_values = gxFirstLibraryWarning + 2,
  543.     graphic_type_cannot_be_specifed_by_six_values = gxFirstLibraryWarning + 3,
  544.     point_expected                = gxFirstLibraryWarning + 4,
  545.     line_or_rectangle_expected    = gxFirstLibraryWarning + 5,
  546.     curve_expected                = gxFirstLibraryWarning + 6,
  547.     graphic_type_does_not_contain_control_bits = gxFirstLibraryWarning + 7,
  548.     request_exceeds_available_data = gxFirstLibraryWarning + 8,
  549.     extra_data_unread            = gxFirstLibraryWarning + 9,
  550.     no_variable_length_user_data_saved = gxFirstLibraryWarning + 10
  551. };
  552.  
  553.  
  554. enum {
  555.     zero_length_string_passed    = gxFirstLibraryNotice
  556. };
  557.  
  558.  
  559. enum {
  560.                                                                 /* These levels tell how to validate routines.  Choose one. */
  561.     gxNoValidation                = 0x00,                            /* no validation */
  562.     gxPublicValidation            = 0x01,                            /* check parameters to public routines */
  563.     gxInternalValidation        = 0x02,                            /* check parameters to internal routines */
  564.                                                                 /* These levels tell how to validate types.  Choose one. */
  565.     gxTypeValidation            = 0x00,                            /* check types of objects */
  566.     gxStructureValidation        = 0x10,                            /* check fields of private structures */
  567.     gxAllObjectValidation        = 0x20,                            /* check every object over every call */
  568.                                                                 /* These levels tell how to validate memory manager blocks.  Choose any combination. */
  569.     gxNoMemoryManagerValidation    = 0x0000,
  570.     gxApBlockValidation            = 0x0100,                        /* check the relevant block structures after each memory mgr. call */
  571.     gxFontBlockValidation        = 0x0200,                        /* check the system gxHeap as well */
  572.     gxApHeapValidation            = 0x0400,                        /* check the memory manager’s gxHeap after every mem. call */
  573.     gxFontHeapValidation        = 0x0800,                        /* check the system gxHeap as well */
  574.     gxCheckApHeapValidation        = 0x1000,                        /* check the memory manager’s gxHeap if checking routine parameters */
  575.     gxCheckFontHeapValidation    = 0x2000                        /* check the system gxHeap as well */
  576. };
  577.  
  578. typedef long                             gxValidationLevel;
  579.  
  580. enum {
  581.     no_draw_error                = 0,                            /* gxShape type errors */
  582.     shape_emptyType                = 1,
  583.     shape_inverse_fullType        = 2,
  584.     rectangle_zero_width        = 3,
  585.     rectangle_zero_height        = 4,
  586.     polygon_empty                = 5,
  587.     path_empty                    = 6,
  588.     bitmap_zero_width            = 7,
  589.     bitmap_zero_height            = 8,
  590.     text_empty                    = 9,
  591.     glyph_empty                    = 10,
  592.     layout_empty                = 11,
  593.     picture_empty                = 12,                            /* general gxShape errors */
  594.     shape_no_fill                = 13,
  595.     shape_no_enclosed_area        = 14,
  596.     shape_no_enclosed_pixels    = 15,
  597.     shape_very_small            = 16,
  598.     shape_very_large            = 17,
  599.     shape_contours_cancel        = 18,                            /* gxStyle errors */
  600.     pen_too_small                = 19,
  601.     text_size_too_small            = 20,
  602.     dash_empty                    = 21,
  603.     start_cap_empty                = 22,
  604.     pattern_empty                = 23,
  605.     textFace_empty                = 24,
  606.     shape_primitive_empty        = 25,
  607.     shape_primitive_very_small    = 26,                            /* gxInk errors */
  608.     transfer_equals_noMode        = 27,
  609.     transfer_matrix_ignores_source = 28,
  610.     transfer_matrix_ignores_device = 29,
  611.     transfer_source_reject        = 30,
  612.     transfer_mode_ineffective    = 31,
  613.     colorSet_no_entries            = 32,
  614.     bitmap_colorSet_one_entry    = 33,                            /* gxTransform errors */
  615.     transform_scale_too_small    = 34,
  616.     transform_map_too_large        = 35,
  617.     transform_move_too_large    = 36,
  618.     transform_scale_too_large    = 37,
  619.     transform_rotate_too_large    = 38,
  620.     transform_perspective_too_large = 39,
  621.     transform_skew_too_large    = 40,
  622.     transform_clip_no_intersection = 41,
  623.     transform_clip_empty        = 42,
  624.     transform_no_viewPorts        = 43,                            /* gxViewPort errors */
  625.     viewPort_disposed            = 44,
  626.     viewPort_clip_empty            = 45,
  627.     viewPort_clip_no_intersection = 46,
  628.     viewPort_scale_too_small    = 47,
  629.     viewPort_map_too_large        = 48,
  630.     viewPort_move_too_large        = 49,
  631.     viewPort_scale_too_large    = 50,
  632.     viewPort_rotate_too_large    = 51,
  633.     viewPort_perspective_too_large = 52,
  634.     viewPort_skew_too_large        = 53,
  635.     viewPort_viewGroup_offscreen = 54,                            /* gxViewDevice errors */
  636.     viewDevice_clip_no_intersection = 55,
  637.     viewDevice_scale_too_small    = 56,
  638.     viewDevice_map_too_large    = 57,
  639.     viewDevice_move_too_large    = 58,
  640.     viewDevice_scale_too_large    = 59,
  641.     viewDevice_rotate_too_large    = 60,
  642.     viewDevice_perspective_too_large = 61,
  643.     viewDevice_skew_too_large    = 62
  644. };
  645.  
  646. typedef long                             gxDrawError;
  647. EXTERN_API_C( gxDrawError )
  648. GXGetShapeDrawError                (gxShape                 source)                                THREEWORDINLINE(0x303C, 0x01EE, 0xA832);
  649.  
  650. EXTERN_API_C( void )
  651. GXValidateAll                    (void)                                                        THREEWORDINLINE(0x303C, 0x01EF, 0xA832);
  652.  
  653. EXTERN_API_C( void )
  654. GXValidateColorSet                (gxColorSet             target)                                THREEWORDINLINE(0x303C, 0x01F0, 0xA832);
  655.  
  656. EXTERN_API_C( void )
  657. GXValidateColorProfile            (gxColorProfile         target)                                THREEWORDINLINE(0x303C, 0x01F1, 0xA832);
  658.  
  659. EXTERN_API_C( void )
  660. GXValidateGraphicsClient        (gxGraphicsClient         target)                                THREEWORDINLINE(0x303C, 0x01F2, 0xA832);
  661.  
  662. EXTERN_API_C( void )
  663. GXValidateInk                    (gxInk                     target)                                THREEWORDINLINE(0x303C, 0x01F3, 0xA832);
  664.  
  665. EXTERN_API_C( void )
  666. GXValidateShape                    (gxShape                 target)                                THREEWORDINLINE(0x303C, 0x01F4, 0xA832);
  667.  
  668. EXTERN_API_C( void )
  669. GXValidateStyle                    (gxStyle                 target)                                THREEWORDINLINE(0x303C, 0x01F5, 0xA832);
  670.  
  671. EXTERN_API_C( void )
  672. GXValidateTag                    (gxTag                     target)                                THREEWORDINLINE(0x303C, 0x01F6, 0xA832);
  673.  
  674. EXTERN_API_C( void )
  675. GXValidateTransform                (gxTransform             target)                                THREEWORDINLINE(0x303C, 0x01F7, 0xA832);
  676.  
  677. EXTERN_API_C( void )
  678. GXValidateViewDevice            (gxViewDevice             target)                                THREEWORDINLINE(0x303C, 0x01F8, 0xA832);
  679.  
  680. EXTERN_API_C( void )
  681. GXValidateViewPort                (gxViewPort             target)                                THREEWORDINLINE(0x303C, 0x01F9, 0xA832);
  682.  
  683. EXTERN_API_C( void )
  684. GXValidateViewGroup                (gxViewGroup             target)                                THREEWORDINLINE(0x303C, 0x01FA, 0xA832);
  685.  
  686. EXTERN_API_C( gxValidationLevel )
  687. GXGetValidation                    (void)                                                        THREEWORDINLINE(0x303C, 0x01FB, 0xA832);
  688.  
  689. EXTERN_API_C( void )
  690. GXSetValidation                    (gxValidationLevel         level)                                THREEWORDINLINE(0x303C, 0x01FC, 0xA832);
  691.  
  692. EXTERN_API_C( long )
  693. GXGetValidationError            (char *                    procedureName,
  694.                                  void **                argument,
  695.                                  long *                    argumentNumber)                        THREEWORDINLINE(0x303C, 0x01FD, 0xA832);
  696.  
  697.  
  698.  
  699. #if defined(__MWERKS__) && TARGET_CPU_68K
  700.     #pragma pop
  701. #endif
  702.  
  703. #if PRAGMA_STRUCT_ALIGN
  704.     #pragma options align=reset
  705. #elif PRAGMA_STRUCT_PACKPUSH
  706.     #pragma pack(pop)
  707. #elif PRAGMA_STRUCT_PACK
  708.     #pragma pack()
  709. #endif
  710.  
  711. #ifdef PRAGMA_IMPORT_OFF
  712. #pragma import off
  713. #elif PRAGMA_IMPORT
  714. #pragma import reset
  715. #endif
  716.  
  717. #ifdef __cplusplus
  718. }
  719. #endif
  720.  
  721. #endif /* __GXERRORS__ */
  722.  
  723.